import request from '@/utils/request'

// 获取计划列表
export function getPlaceList (params = {}) {
  return request({
    url: '/launch/huaweiReport/dimensionList',
    method: 'get',
    params: params
  })
}

// 查询列表数据
export function listTable(query) {
  return request({
    url: '/launch/huaweiReport/list',
    method: 'get',
    params: query
  })
}

// 查询列表数据
export function queryOfferList(query) {
  return request({
    url: '/hwLaunch/priceRecord/list',
    method: 'get',
    params: query
  })
}

// 修改出价
export function updatePrice(data) {
  return request({
    url: '/hwLaunch/priceRecord/update',
    method: 'put',
    data: data
  })
}

// 修改成本偏差值
export function updatePassbackConfig(data) {
  return request({
    url: '/hwLaunch/passbackConfig',
    method: 'put',
    data: data
  })
}

// 拉取报表
export function huaweiTask(query) {
  return request({
    url: '/launch/huaweiReport/huaweiTask',
    method: 'get',
    params: query
  })
}

